<ul class="sitemap">
<?php if (!empty($this->nodes)) : ?>
     <?php foreach ($this->nodes as $node) : ?>
        <li>
            <?php if (!empty($node->url_alias)) : ?>
                <a href="<?php echo htmlspecialchars($this->fixUrl('page/'.$node->url_alias)) ?>.html"><?php echo $node->title ?></a>
            <?php else : ?>
                <a href="<?php echo htmlspecialchars($this->fixUrl('node/id/'.$node->id)) ?>"><?php echo $node->title ?></a>
            <?php endif; ?> 
         </li>
      <?php endforeach; ?>
<?php endif; ?>

</ul>

<?php echo $this->paginator ?>
